package com.ning.city.bean;

import lombok.Data;
import lombok.Getter;

/**
 * @author Ning 242741154@qq.com
 * @date 2021/1/5 9:24
 */
@Data
public class User {
    private String id;
    private String name;
    private String password;
    private Short type;
    private Short state;

    @Getter
    public enum State {
        NORMAL(1, "正常用户"),
        //        FORBIDDEN(3,"禁言用户"), // 保留字段, 备用
        DESTROY(4, "注销用户");

        private final short id;
        private final String desc;

        State(int id, String desc) {
            this.id = (short) id;
            this.desc = desc;
        }
    }
}
